Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all i18n calls to init action as per WP 6.7 #478

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

lightningspirit
Copy link

See #477

Short introduction

Ticket #477

Remove warnings related to i18n in WordPress 6.7

Description of what the PR accomplishes

This PR removes the warnings for WordPress 6.7 in regards to calling i18n functions before init hook.
The problem is not only on the load_plugin_textdomain call but also in any call to a i18n function before init action.

This commit moves the requires to init. Manual tests were made using this hook level and no issues were found.

@themefour
Copy link

In WordPress 6.7 update, the non-English site is messed up. The plugin language file and themes do not run correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants